<?php
if(!isset($_SESSION)) 
	{ 
		session_start(); 
	}
	if(!$_SESSION['usname'])
	{
		header( 'Location: ../index.php' );
	}
	else 
	{		
		$usname = $_SESSION['usname'];
		header('Location: search.php');
	}
?>